//
//  ViewController.m
//  audioTest
//
//  Created by Yang Bean on 12/10/11.
//  Copyright (c) 2012年 Yang Bean. All rights reserved.
//

#import "ViewController.h"
#import "MusicPlayerTool.h"
@interface ViewController ()
- (void)playAudio;
@end

@implementation ViewController
- (id)init
{
    self = [super init];
    if (self) {
    }
    return self;
}
- (void)viewDidLoad
{
    [super viewDidLoad];
    [[MusicPlayerTool sharedInstance] playBG_MusicWithPath:@"ppp0"];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
- (void)playAudio
{
   
}
- (IBAction)next:(id)sender {
    [[MusicPlayerTool sharedInstance] playBG_MusicWithPath:@"ppp1"];
    
}

- (IBAction)RC:(id)sender {
    [[MusicPlayerTool sharedInstance] playBG_MusicWithPath:@"ppp3"];
    
}

- (IBAction)stop:(id)sender {
    [[MusicPlayerTool sharedInstance] playBG_MusicWithPath:@"ppp2"];
    
}

- (IBAction)pause:(id)sender {
    [[MusicPlayerTool sharedInstance] playBG_MusicWithPath:@"ppp0"];
    
}
@end
